import request   from "@/utils/request";

export const queryAll = ()=>{return request.get("/depts")}
export const saveDept = (data)=>request.post("/depts",data)

export const getById = (id) => request.get(`/depts/${id}`);

export const updateById = (data)=>request.put("/depts",data);

export const deleteById = (id)=>request.delete(`/depts?id=${id}`);